package com.bdqn.mapper;

import com.bdqn.pojo.goods.Seckill;
import org.apache.ibatis.annotations.Param;

/**
 * 秒杀活动
 *
 * @author LILIBO
 * @since 2022-06-24
 */
public interface SeckillMapper extends IMapper<Seckill> {

    /**
     * 商品秒杀
     *
     * @param seckillId 秒杀活动ID
     * @param version 乐观锁版本号
     * @return
     */
    long viebuy(@Param("seckillId") Long seckillId, @Param("version") Integer version);


}
